<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#cccccc" width="200" valign="top"><!-- variable RHS Menu -->
     	<?php require('templates/menu7.php');?>
 
				</td>
<td valign="top" style="padding:30px 30px 30px 30px;">
<!--content-->



<?php
if(!isset($_REQUEST['id'])){
?>
<table border="0" width="100%" align="center">
<tr>
	<td>
		<b><div id="resultshere1" class="errorText">
		<?php
	 if($_REQUEST['v']=='success')
	{
	echo 'Your Request has been submitted';
	}
	 ?>
	 <?php
	 if($_REQUEST['v']=='err')
	{
	echo 'Please Select the record';
	}
	 ?>
		</div>
		</b>
		</td>
	</tr>
	<tr>
  <td><img src="heading/Display-Laptop-Details_03.jpg"/></td>
</tr>
<tr>
   <td>&nbsp;</td>
</tr>   
<tr>
<td align="center"><?php echo GetDispalyLaptopDetailsGrid();?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>


<tr>
<td>&nbsp;</td>
</tr>

</table>
<?php }
else{
$sql = mysql_query('SELECT DISTINCT laptop_id,laptop_name,laptop_model,status,box_no,serial_no,manufactured_date,depot_location,laptop_condition,laptop_type FROM laptop_details where laptop_id="'.$_REQUEST['id'].'"');

$result = mysql_fetch_row($sql);
 ?>
	<form name="frmDatacards" id="frmDatacards" method="post" action="display_laptop_details_process.php">
	<input type="hidden" name="laptop_id" value="<?php echo $result[0];?>" />
		  <table class="grid" border="0">
		   <tr>
			  <td colspan="3"  height="10"></td>
			  </tr>
			  			  <tr>
			  <td height="20"></td>
			  </tr>
              <tr>
                <td><b>Laptop Name</b></td>
                <td>:</td>
                <td><input type="text" name="laptop_name" id="laptop_name" size="20" value="<?php echo $result[1];?>"></td>
              </tr>
			  <tr>
              <td><b>Laptop Model</b></td>
              <td>:</td>
              <td><input type="text" name="laptop_model" id="laptop_model" size="20" value="<?php echo $result[2];?>"></td>
              </tr>
			  <tr>
              <td><b>Status</b></td>
              <td>:</td>
              <td><input type="text" name="status" id="status" size="20" value="<?php echo $result[3];?>"></textarea></td>
              </tr>
			  <tr>
              <td><b>Box No</b></td>
              <td>:</td>
              <td><input type="text" name="box_no" id="box_no" size="20" value="<?php echo $result[4];?>"></td>
              </tr>
			  <tr>
              <td><b>Serial No</b></td>
              <td>:</td>
              <td><input type="text" name="serial_no" id="serial_no" size="20" value="<?php echo $result[5];?>"></td>
              </tr>
			  <tr>
              <td><b>Manufactured Date</b></td>
              <td>:</td>
              <td><input type="text" name="manufactured_date" id="manufactured_date" size="20" value="<?php echo $result[6];?>"></td>
              </tr>
			  <tr>
              <td><b>Depot Location</b></td>
              <td>:</td>
              <td><input type="text" name="depot_location" id="depot_location" size="20" value="<?php echo $result[7];?>"></td>
              </tr>
			  <tr>
              <td><b>Laptop Condition</b></td>
              <td>:</td>
              <td><input type="text" name="laptop_condition" id="laptop_condition" size="20" value="<?php echo $result[8];?>"></td>
              </tr>
			  <tr>
              <td><b>Laptop Type</b></td>
              <td>:</td>
              <td><input type="text" name="laptop_type" id="laptop_type" size="20" value="<?php echo $result[9];?>"></td>
              </tr>
			  <tr>
			  <td height="20"></td>
			  </tr>
			  
              <tr>
                <td colspan="3" align="center">
				<input type="hidden" name="PageName" value="<?php echo $_SERVER['REQUEST_URI'];?>" />
				<input type="submit" value="Submit" name="submit"></td>
              </tr>
			  <tr>
			  <td colspan="3"  height="20"></td>
			  </tr>
            </table>
			</form>
<?php } ?>
    <!--end content-->
    </td>
	</tr>
  </table>

  </td>
  </tr>
</table>
